package com.example.demo_homework2.mapper;

import com.example.demo_homework2.bean.CmsArticle;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
@Mapper
public interface CmsArticleMapper {
    int deleteByPrimaryKey(String id);

    int insert(CmsArticle record);

    CmsArticle selectByPrimaryKey(String id);

    List<CmsArticle> selectAll();

    int updateByPrimaryKey(CmsArticle record);

    int deleteArticleByIds(String[] ids);

    int selectArticleByCategoryid(String categoryId);

    List<CmsArticle> selectBy(Date begin,Date end,String key);

    int updateStateById(String artId,String state);
}